package com.greateffect.littlebud.lib.provider;

import java.util.Random;

/**
 * Created by ZengCS on 2016/8/17.
 * E-mail:zengcs@vip.qq.com
 * Add:成都市天府软件园E3
 */
public class NameProvider {
    public static final String[] CHILD_NAME = {"小熊", "小玻", "Spot", "Tom", "Tony", "Steve", "Jack", "Bob",
            "Jimbo", "Donnie", "Dizzy", "Mira", "Jett", "Paul", "Grand Albert", "Bello", "Jerome", "Roy", "Astra",
            "乐迪", "金宝", "多多", "小爱", "小青", "包警长", "胡须爷爷", "酷飞", "皮皮", "米莉"
    };

    private static Random random = new Random();
    private static int lastInt = -1;

    public static String get() {
        int i = random.nextInt(CHILD_NAME.length);
        if (i == lastInt) {
            return get();
        }
        lastInt = i;
        return CHILD_NAME[i];
    }
}
